
import { axios } from '@/utils/request'

/**
 * 获取申请信息
 * @param url
 * @param data
 * @returns {AxiosPromise}
 */

export function getFlowData(data) {
    return axios({
        url: "/vatoutinv/businessFlow/getFlowData",
        method:'post' ,
        data
    })
}
/**
 * 保存流程&提交流程
 * @param url
 * @param data
 * @returns {AxiosPromise}
 */
export function saveOrSubmit(data) {
    return axios({
        url: "/vatoutinv/businessFlow/saveOrSubmit",
        method:'post' ,
        data
    })
}

/**
 * 获取下一个节点信息
 * @param data
 * @returns {AxiosPromise}
 */
export function getNextHandleInfo(data) {
    return axios({
        url: "/vatoutinv/businessFlow/getNextHandleInfo",
        method:'post' ,
        data
    })
}

/**
 * 办理流程
 * @param data
 * @returns {AxiosPromise}
 */
export function handlingProcess(data) {
    return axios({
        url: "/vatoutinv/businessFlow/handlingProcess",
        method:'post' ,
        data
    })
}

/**
 * 流程记录
 * @param data
 * @returns {AxiosPromise}
 */
export function processLog(data) {
    return axios({
        url: "/vatoutinv/businessFlow/processLog",
        method:'post' ,
        data
    })
}

/**
 * 终止流程
 * @param data
 * @returns {AxiosPromise}
 */
export function stopProcess(data) {
    return axios({
        url: "/vatoutinv/businessFlow/stopProcess",
        method:'post' ,
        data
    })
}


